﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ChatServerApp.Classes
{
    [Serializable]
    public class User
    {
        private string _name;
        private string _vorname;
        private string _email;
        private string _nick;
        private string _jahrgang;

        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        public string Vorname
        {
            get { return _vorname; }
            set { _vorname = value; }
        }

        public string Email
        {
            get { return _email; }
            set { _email = value; }
        }

        public string Nick
        {
            get { return _nick; }
            set { _nick = value; }
        }

        public string Jahrgang
        {
            get { return _jahrgang; }
            set { _jahrgang = value; }
        }

        public User()
        {
            _name = String.Empty;
            _vorname = String.Empty;
            _nick = String.Empty;
            _jahrgang = String.Empty;
            _email = String.Empty;
        }

        public User(string name, string vorname, string email, string nickname, string jahrgang)
        {
            _name = name;
            _vorname = vorname;
            _email = email;
            _jahrgang = jahrgang;
            _nick = nickname;
        }

    }
}
